<!DOCTYPE html>
<?php $css_ver = '1.0';?>
<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="vi-vn" lang="vi-vn">
    <head>
        <title><?php echo @$seo['title']; ?></title>
       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="robots" content="<?php echo (isset($noindex))?'noindex, nofollow':'noodp';?>"/>
		<meta property="fb:admins" content="100000143777120"  >
		<meta property="fb:app_id" content="253692721484156" />
        <meta property="og:title" content="<?php echo @$seo['title']; ?>" />
        <meta property="og:description" name="description" content="<?php echo @$seo['description']; ?>" />
		<?php if (isset($og_type)) { ?>
		<meta property="og:type" content="<?php echo $og_type;?>" />
		<?php } ?>
		<meta property="og:site_name" content="Game hay nhất"/>
        <?php if (isset($og_image)) { ?>
          <meta property="og:image" content="<?php echo @$og_image; ?>" />
          <?php } ?>
		 <meta property="og:url" content="<?php echo current_url();?>" />
        <?php if (@$canonical && isset($canonical)) { ?>
        <link rel="canonical" href="<?php echo $canonical; ?>" />
        <?php }
        ?>
		
        <link rel="alternate" type="application/rss+xml" title="RSS Game Hay Nhat Dot Com" href="<?php echo $this->template->url_page; ?>rss.xml" />
        <link rel="shortcut icon" href="<?php echo $this->template->url_page; ?>favicon.png" type="image/x-icon" />
        <meta name="keywords" content="<?php echo @$seo['keyword']; ?>" />
        <base href="<?php echo $this->template->url_page; ?>" />
        <?php
		/* add css */
		$this->template->add_css_lib("style.css?v=1.1.8");
		$this->template->add_css_lib("pagenavi-css.css");
		$this->template->add_css_lib("braygamespanel.min.css");
		$this->template->add_css_lib("jquery-ui.min.css");
		//$this->template->add_css_lib("userstyle.min.css?v=1.1.5");
		$this->template->add_css_lib("stickytooltip.min.css");
		$this->template->add_css_lib("css.min.css?v=1.1.5");
        //add js
        echo $this->template->add_js("jquery-1.8.1.min.js");
		echo $this->template->add_js("jquery-ui.min.js");
		echo $this->template->add_js("jquery.nivo.slider.pack.js");
		echo $this->template->add_js("basic-jquery-slider.min.js");
		echo $this->template->add_js("jquery.easing.1.3.min.js");
		echo $this->template->add_js("jquery.lazyload.min.js");
		echo $this->template->add_js("tooltip.js");
		echo $this->template->add_js("script.js");
		//echo $this->template->add_js("jquery.imgr.min.js");
		//echo $this->template->add_js("jquery.corner.min.js");
        ?>
        
		<?php echo $this->template->get_css_lib(); ?><?php echo $this->template->get_js_lib(); ?>
		
		<!-- code gdf -->
		<script type='text/javascript'>
			var googletag = googletag || {};
			googletag.cmd = googletag.cmd || [];
			(function() {
				var gads = document.createElement('script');
				gads.async = true;
				gads.type = 'text/javascript';
				var useSSL = 'https:' == document.location.protocol;
				gads.src = (useSSL ? 'https:' : 'http:') + 
				'//www.googletagservices.com/tag/js/gpt.js';
				var node = document.getElementsByTagName('script')[0];
				node.parentNode.insertBefore(gads, node);
			})();
		</script>
		
		<script type='text/javascript'>
			googletag.cmd.push(function() {
				googletag.defineSlot('/16283368/canhgame-188x102-choigame-desktop', [188, 102], 'div-gpt-ad-1409278595611-0').addService(googletag.pubads());
				googletag.defineSlot('/16283368/Top-282x57-toantrang-desktop', [282, 57], 'div-gpt-ad-1409278595611-2').addService(googletag.pubads());
				googletag.defineSlot('/16283368/trungtam1-320x245-trangchu-desktop', [320, 245], 'div-gpt-ad-1409278595611-3').addService(googletag.pubads());
				googletag.defineSlot('/16283368/trungtam2-320x245-trangchu-desktop', [320, 245], 'div-gpt-ad-1409278595611-4').addService(googletag.pubads());
				googletag.defineSlot('/16283368/bannerdangnhap-468x60-toantrang-desktop', [468, 60], 'div-gpt-ad-1411955572393-0').addService(googletag.pubads());
				
				googletag.defineSlot('/16283368/trai1-300x600-dautruong-desktop', [300, 600], 'div-gpt-ad-1411978453547-0').addService(googletag.pubads());
				googletag.defineSlot('/16283368/trai2-300x250-dautruong-desktop', [300, 250], 'div-gpt-ad-1412129750955-0').addService(googletag.pubads());
				
				googletag.pubads().enableSingleRequest();
				googletag.enableServices();
			});
		</script>
		<script>
			(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
				(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
				m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
			})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
			
			ga('create', 'UA-54596860-1', 'auto');
			ga('send', 'pageview');
			
		</script>
    </head>
    <body>
	
	<?php 
	if(1==0)
	if(strpos(current_url(), '/dau-truong/')){ ?>
		<a rel="" id="linkbg1" class="fixed-top" href="http://gamehaynhat.com/dau-truong/candy-crush-saga.html" target="_blank" style="border: 0px; width: 206.5px; height: 766px; float: left;opacity: 0; left: 0px; display: block; background-color: rgb(255, 255, 255);" title="Tham gia đấu trường Candy Crush Saga.">&nbsp;</a>
		<a rel="" id="linkbg2" class="fixed-top2" href="http://gamehaynhat.com/dau-truong/candy-crush-saga.html" target="_blank" style="border: 0px; width: 206.5px; height: 766px; float: right;opacity: 0; left: 1216.5px; display: block; background-color: rgb(255, 255, 255);" title="Tham gia đấu trường Candy Crush Saga.">&nbsp;</a>
<style>
	.fixed-top ,.fixed-top2 {
	position: fixed;
	bottom: auto;
	top: 0px;
	opacity:0;
	filter: alpha(opacity=0); /* For IE8 and earlier */
	z-index: 1;
	}
	
	#wrapper {
	width: 990px;
	margin: 0 auto;
	background: #fff;
	padding: 0 10px;
	min-height:1000px;
	z-index: 2;
	position: relative;
	}
</style>
		<?php } ?>
 <base href="<?php echo base_url(); ?>" />
 <div id="fb-root"></div>
 <?php /*
 <script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId  : '253692721484156',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml  : true, // parse XFBML
channelUrl : 'http://WWW.MYDOMAIN.COM/channel.html', // channel.html file
oauth  : true // enable OAuth 2.0
});
</script>
    
	<script>
   FB.Event.subscribe('edge.create', function(href, widget) {
alert("Like button clicked");
   });
   
   FB.Event.subscribe('edge.remove', function(href, widget) {
alert("Un Like button clicked");
   });
   
   FB.api('/me/likes/678737885497009',function(response) {
    if( response.data ) {
        if( !isEmpty(response.data) )
            alert('You are a fan!');
        else
            alert('Not a fan!');
    } else {
        alert('ERROR!');
    }
});
</script>


<script>
function facebook_send_message(to) {
    FB.ui({
        app_id:'253692721484156',
        method: 'send',
        name: "sdfds jj jjjsdj j j ",
        link: 'http://gamehaynhat.com',
        to:to,
        description:'sasa d d dssd ds sd s s s '

    });
}
facebook_send_message(100000102668991);
</script>
*/ ?>

